//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.zaicheng.cloud.remotecall.template;

public class Literal implements TemplateChunk {
    private final String value;

    public static Literal create(String value) {
        return new Literal(value);
    }

    Literal(String value) {
        if (value != null && !value.isEmpty()) {
            this.value = value;
        } else {
            throw new IllegalArgumentException("a value is required.");
        }
    }

    @Override
    public String getValue() {
        return this.value;
    }
}
